export const getImg = (name) => {
  return new URL(`../assets/img/${name}`, import.meta.url).href
}

export function isExternal(path) {
  return /^(https?:|mailto:|tel:)/.test(path)
}
